package com.hjxy.service.impl;

import com.hjxy.dao.ClassDao;
import com.hjxy.pojo.Class1;
import com.hjxy.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: ty
 * @createDate: 2020/10/4
 * @version: 1.0
 */
@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassDao classroomDao;

    @Override
    public List<Class1> queryAllClassroom() {
        return classroomDao.queryAllClassroom();
    }

    @Override
    public int addClassroom(Class1 classroom) {
        return classroomDao.addClassroom(classroom);
    }

    @Override
    public int deleteClassroomById(int classroomId) {
        return classroomDao.deleteClassroomById(classroomId);
    }
}
